package com.example.demo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;


import java.util.Date;
@Data
public class Lending {
    public Lending(){

    }
    public Lending(String id, Date date, String name, String bookName){
        this.id = id;
        this.date = date;
        this.name = name;
        this.bookName = bookName;

    }
    private String id;
    @JsonFormat(pattern="yyyy-MM-dd")
    private Date date;
    private String name;
    private String bookName;


}
